﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XDesigner.ORM
{
    [System.AttributeUsage( AttributeTargets.Property )]
    public class ORMSortAttribute : Attribute 
    {
        public ORMSortAttribute(ORMSortStyle style)
        {
            _Style = style;
        }

        private ORMSortStyle _Style = ORMSortStyle.Ascent;

        public ORMSortStyle Style
        {
            get { return _Style; }
            set { _Style = value; }
        }

        private int _Priority = 0;
        public int Priority
        {
            get
            {
                return _Priority;
            }
            set
            {
                _Priority = value;
            }
        }
    }

    public enum ORMSortStyle
    {
        None,
        Ascent,
        Descent
    }
}
